#include <iostream>
#include <cstdio>
using namespace std;
typedef long long LL;
int main()
{
    int T;
    scanf("%d", &T);
    while (T--)
    {
        LL n;
        scanf("%lld", &n);
        int cnt = 0;
        while (n > 4)
        {
            cnt++;
            n /= 2;
        }
        printf("%d %d %d\n", cnt + 3, cnt + 4, 1);
    }
    return 0;
}